package com.seeyon.apps.hems.manager.impl;

import com.seeyon.apps.hems.dao.BatchLabelPrintingDao;
import com.seeyon.apps.hems.manager.BatchLabelPrintingManager;
import com.seeyon.apps.hems.po.BatchLabelPrintingPO;
import com.seeyon.ctp.common.AppContext;
import com.seeyon.ctp.common.exceptions.BusinessException;

public class BatchLabelPrintingManagerImpl implements BatchLabelPrintingManager {

    private BatchLabelPrintingDao batchLabelPrintingDao = (BatchLabelPrintingDao) AppContext.getBean("batchLabelPrintingDao");

    @Override
    public void save(BatchLabelPrintingPO batchLabelPrintingPO) throws BusinessException {
        batchLabelPrintingDao.save(batchLabelPrintingPO);
    }

    @Override
    public BatchLabelPrintingPO findDataById(Long id) throws BusinessException {
        return batchLabelPrintingDao.findDataById(id);
    }
}
